Explain how one could figure out whether a topological space is compact

Explain how one could figure out whether a topological space is compact